package com.chenfan.process.context;
/**
 * @author K
 * @date 2022/7/12 5:12 PM
 */
public class CounterSignContext {
    private static final InheritableThreadLocal<Boolean> EVENT_CONTEXT = new InheritableThreadLocal<>();

    private CounterSignContext() {}

    public static Boolean getValue() {
        return EVENT_CONTEXT.get();
    }

    public static void setValue() {
        EVENT_CONTEXT.set(Boolean.TRUE);
    }


    public static void clear() {
        EVENT_CONTEXT.remove();
    }
}
